﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SponsorshipManager.Database;

namespace SponsorshipManager.BusinessLayer

{
    public class DatabaseAdapter
    {
        public static string Server { get; set; }
        public static Database.Database.DatabaseTypeEnum DatabaseType { get; set; }
        private static Database.Database _Database;
        public static Database.Database Database 
        {
            get{
                if (_Database == null)
                {
                    //This needs configuring somehow...

                    _Database = new Database.Database(DatabaseType, Server);
                }
                return _Database;

            }
        }

    }
}
